$(function(){
	var pData = [{value:500,name:'Android'},
                    {value:200,name:'IOS'},
                    {value:360,name:'PC'},
                    {value:100,name:'Ohter'},
                    {value:1000,name:'java'}];
	var seriesData = [600,200,360,100,1000];	
       //饼图
         var option = {
            title:{
                text:'ECharts'
            },            
            series:[{
                name:'访问量',
                type:'pie',    
                radius:'100%', 
                data:pData
            }]
        };
        
        
        
          //初始化echarts实例
        var myChart = echarts.init(document.getElementById('chartmain'));

        //使用制定的配置项和数据显示图表
        myChart.setOption(option);
        
})
